<script>
function myform_submit() {
    if(!isempty('brand_name','品牌不能为空'))return false;
	return true;
}

</script>


<!--菜单 start-->
<?php $this->load->view('defaults/common/left');?>
<!--菜单 end-->
<div id="content">
  <div class="page-header">
    <div class="container-fluid">
      <h1><?=lang('menu_cpgl')?></h1>
      <?=$this->breadcrumb->generateHTML();?>
    </div>
  </div>
  <div class="container-fluid">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa fa-pencil"></i><?php if($post_type =='add') echo '新增品牌';else echo '修改品牌'?></h3>
      </div>
      <div class="panel-body">
        <div class="table-responsive">
          <form class="form-horizontal" action="<?=blang_url('brands/brand/'.$post_type)?>" method="post" name="myform" onsubmit="return myform_submit()" autocomplete="off" style="overflow: hidden;">
            <div class="form-group">
              <label class="col-sm-2 control-label">品牌名称</label>
              <div class="col-sm-10">
                <input class="form-control" type="text" name="brand_name" value="<?=$brandFirst['brand_name']?>" />
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">品牌中文名称</label>
              <div class="col-sm-10">
                <input class="form-control" type="text" name="brand_name_sc" value="<?=$brandFirst['brand_name_sc']?>" />
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">品牌商帐号</label>
              <div class="col-sm-10">
                <input class="form-control" type="text" name="merchant_account" value="<?=$brandFirst['merchant_account']?>" />
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label"></label>
              <div class="col-sm-10">
                <input type="hidden" name="id" value="<?=$brandFirst['brand_id']?>" />
                <input class="btn btn-primary" type="submit" value="<?=lang('public_tj')?>" name="submits" style="padding:8px 45px;"/>
              </div>
            </div>
          </form>
           
          </div>
      </div>
    </div>
    </div>
</div>